<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div class="div" id='box' title="title" >box</div>
		<a href="http://www.baidu.com" id='link'>百度</a>
		<input type='text' value='' id="text">;
	</body>
</html>
<script>
	
	//基本使用
	let oBox = document.getElementById('box');
	let oLink = document.getElementById('link');
	let oText = document.getElementById('text');
	
	console.log(oBox.title);
	console.log(oLink.href);
	console.log(oText.value);
	
	//赋值
	oText.value = "赋值了";
	console.log(oText.value);
	
</script>